<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>车辆详情页</title>
		<link href="__PUBLIC__/css/car/css/page.css" rel="stylesheet" type="text/css"/>
		<link href="__PUBLIC__/css/car/css/car.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
.listBox {
	width:650px;
	height:75px;
	margin:0 auto;
	position:relative;
	padding:12px 0 5px;
	overflow:hidden;

}
.listBox ul {
	height:75px;
	position:absolute
}
.listBox li {
	margin-right: 4px;
	width:80px;
	height:75px;
	cursor:pointer;
	position:relative;
	display: inline-block
}
.listBox li img {
	width:78px;
	height:67px;
	border:1px solid #ccc;
	padding:4px
}
.listBox .on img {
	border:2px solid #f60;
	padding:2px;
	width:96px;
	height:67px
}
</style>
	</head>
	<body>
		<!--内容-->
		<?php include "/Home/View/Car/head.php" ?>
		
		<div class="main clearfix mt10">
	<div class="main_left">
		<div class="cartitle">
			<?php foreach ($detail_list as $k => $v){ ?>
			<p><span class="fr f12 gray fn">发布日期：<?php echo(date('Y-m-d H:i:s' ,$v['send_time']));?></span><?php echo $v['brand'],$v['carname'];?></p>
			<p class="gray f12 fn mt5"><?php echo $v['brand'],$v['carname'];?>。该车46项检测，绝无大事故，里程表保真。3天/150公里以内，有重大不可修复机械故障，免费换车！可议价！自购车日起，7天包退，3个月/5000公里质保。诚信二手车给您提供最优质的服务 安心便捷 二手车分期贷款 最高可提供50%的贷款 详情可电话咨询  安心源自可靠品质 诚挚欢迎您的到来 无事故 无泡水 无经济纠纷 手续齐全 可以安全过户 放心的品质 最低的价位 快来电咨询吧！！
联系我时，请说是在诚信二手车网站上看到的，谢谢！</p>
		</div>
		<div class="carbox clearfix">
			<div class="carbox_left">
				<div class="carpicbox">
										<img src="__PUBLIC__/function/upload/<?php echo $v['img'];?>" id="imgshow"/>
<div id="listBox" class="listBox">
    <ul style="width: 1596px;" class="cf">
     <?php $i=1;?>
      <?php foreach ($image_list as $kk=>$vv){?>
      <?php if ($vv!=null){?>
        <li class="">
            <img class="js_lazy_img" lazysrc="" src="__PUBLIC__/function/upload/<?php echo $vv;?>" onerror="this.src='__PUBLIC__/function/upload/<?php echo $vv;?>'" onclick="showimg('__PUBLIC__/function/upload/<?php echo $vv;?>');" height="70" width="50">
            <input type="hidden" name="piantu" value="<?php echo $vv;?>">
           
            <u class="pagenumtmbg" id="js_img_count" type="hidden"><?php echo $i;?></u>
        </li>
        <?php }?>
     <?php $i++; }?>
     </ul>
</div>
										<p class="mt10 tc"><a href="#bigpic" class="blue unl" style="text-decoration: underline;">查看大图</a></p>
				</div>
				
			</div>
			<div class="carbox_right">
				<p class="price01">预售价格：<span class="fb f20 orange01"><?php echo sprintf('%.2f',$v['price']);?></span> 万元</p>
				<div class="detail01 mt10">
					<ul class="clearfix">
						<li><span class="fb">车型：<?php echo $v['model'];?></span></li>	
						<li><span class="fb">行驶里程：</span><?php echo sprintf('%.2f',$v['kilometre']);?>万公里</li>
						<li><span class="fb">颜色：</span><?php echo $v['color'];?></li>
						<li><span class="fb" style="word-spacing:10px;">变速箱：</span><?php echo $v['transmission'];?></li>
						<li><span class="fb">排量：</span><?php echo $v['gas'];?>L</li>
						<li><span class="fb">上牌日期：</span><?php echo $v['year'];?>年<?php echo $v['month'];?>月</li>
					</ul>
				</div>
				<div class="detail02 mt10">
					<p><span>车况说明：</span></p>
					<p>诚信二手车<?php echo $v['brand'],$v['carname'];?>。该车46项检测，绝无大事故，里程表保真。3天/150公里以内，有重大不可修复机械故障，免费换车！可议价！自购车日起，7天包退，3个月/5000公里质保。诚信二手车给您提供最优质的服务 安心便捷 二手车分期贷款 最高可提供50%的贷款 详情可电话咨询  安心源自可靠品质 诚挚欢迎您的到来 无事故 无泡水 无经济纠纷 手续齐全 可以安全过户 放心的品质 最低的价位 快来电咨询吧！！
联系我时，请说是在诚信二手车网站上看到的，谢谢！</p>
				</div>
				<div class="detail02 mt10">
										<p><span>联系人：<?php echo $v['username'];?></span></p>
					<p class="orange01 f20 fb"></p>
									</div>
			</div>
		</div>
		<div class="commonbox01 mt10" id="bigpic">
			<h3>大图展示</h3>
			<div class="box">
				<table class="cktable">
                    <tr><th>车型：</th><td><?php echo $v['model'];?></td><th>行驶里程：</th><td><?php echo sprintf('%.2f',$v['kilometre']);?>万公里</td></tr>
                    <tr><th>颜色：</th><td><?php echo $v['color'];?></td><th>变速箱：</th><td><?php echo $v['transmission'];?></td></tr>   
                    <tr><th>排量：</th><td><?php echo $v['gas'];?>L</td><th>上牌日期：</th><td><?php echo $v['year'];?>年<?php echo $v['month'];?>月</td></tr>
                    <tr><th>上次验车时间：</th><td><?php echo $v['exatime'];?></td><th>交强险截止日期：</th><td><?php echo $v['securedate'];?></td></tr>
					<tr><th>车船使用税有效期：</th><td><?php echo $v['tax'];?></td><th>车辆出厂日期：</th><td><?php echo $v['productiontime'];?></td></tr>
                    <tr><th>补充描述：</th><td colspan="3"><?php echo $v['details'];?></td></tr> 
				</table>
				<ul class="mt20">
					<?php foreach ($image_list as $kk => $vv){ ?>
					<li class="mt10 tc"><img src="__PUBLIC__/function/upload/<?php echo $vv;?>"/></li>
					<?php  } ?>
				</ul>
			</div>
		</div>
	</div>
	<div class="main_right">
		<div class="commonbox02">
								<h3>联系人信息</h3>
					<div class="box">
						<p class="mt10">联系人：<?php echo $v['username'];?></p>
						<p class="mt10">手机：<?php echo $v['tel'];?></p>
					</div>
									</div>
		<?php } ?>
				<div class="commonbox02 mt10">
					<h3>同车系其他车源</h3>
					<div class="box">
						<ul class="newslist">
							<?php foreach ($car_list_model as $k=>$v){ ?>	
									<li><span class="orange01 fb fr">￥<?php echo sprintf('%.2f',$v['price']);?>万</span><a href="__APP__/Home/Car/details?car_id=<?php echo $v['id']?>" target="_blank"><?php echo $v['brand'],$v['carname'];?></a></li>
							<?php }?>
						</ul>
					</div>
				</div>
				<div class="commonbox02 mt10">
					<h3>同价位其他车源</h3>
					<div class="box">
						<ul class="newslist">
							<?php foreach ($car_list_price as $k=>$v){ ?>	
									<li><span class="orange01 fb fr">￥<?php echo sprintf('%.2f',$v['price']);?>万</span><a href="__APP__/Home/Car/details?car_id=<?php echo $v['id']?>" target="_blank"><?php echo $v['brand'],$v['carname'];?></a></li>
							<?php }?>
						</ul>
					</div>
				</div>
					</div>
</div>
		<!--版权-->
		<?php include "/Home/View/Car/foot.php" ?>
<script language="javascript">
function showimg(str){
	document.getElementById("imgshow").src=str;
}
</script>
	</body>
</html>
